package cn.kgc.ssm.controller;

import cn.kgc.ssm.commons.ResponseResult;
import cn.kgc.ssm.service.LogsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/5/20
 * @description
 */
@RestController
@RequestMapping("log")
public class LogsController {


    @Resource
    private LogsService logsService;
    @RequestMapping("page")
    public ResponseResult logPage(Integer page,Integer limit,String model,String description){
        return logsService.logsPage(page,limit,model,description);
    }


    //批量删除
    @RequestMapping("delete")
    public ResponseResult deleteLog(Integer[] ids){
        return logsService.deleteLogs(ids);
    }
}
